package com.aizuda.boot.modules.business.approval.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description =  "审批节点详情")
public class ApprovalNodeDetailDTO {

    @Schema(description = "节点顺序号")
    private Integer nodeOrder;

    @Schema(description = "节点名称")
    private String nodeName;

    @Schema(description = "节点状态")
    private String nodeStatus;

    @Schema(description = "进入时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime enterTime;

    @Schema(description = "离开时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime leaveTime;

    @Schema(description = "审批意见")
    private String approvalComment;

    @Schema(description = "审批人用户ID")
    private String assigneeUserId;

    @Schema(description = "审批人用户名称")
    private String assigneeUserName;

    @Schema(description = "审批人用户头像")
    private String assigneeUserAvatar;

    private String assigneeUserNickName;

    @Schema(description = "审批人来源")
    private String assigneeSource;

    @Schema(description = "审批人来源配置")
    private String assigneeSourceConfig;
}
